<template>
  <div>
    <van-nav-bar title="个人中心" />
    <div class="my-content">
      <div class="my-content-login" @click="loginFn">
        <div class="loginImg">
          <img src="@/assets/login.png" class="img" />
        </div>
        <span class="login">登录/注册</span>
      </div>
      <van-cell title="全部订单" is-link />
      <van-cell title="我的预约" is-link />
      <van-cell title="应用推荐" is-link />
      <van-cell title="用户福利" is-link />
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    loginFn() {
      this.$router.push("/login");
    },
  },
};
</script>

<style scoped lang="less">
/deep/ .van-nav-bar__content {
  padding-top: 10px;
  .van-nav-bar__title {
    font-size: 20px;
  }
}
.my-content {
  margin-top: 15px;
  /deep/ .van-cell {
    font-size: 16px;
    padding: 9px;
    .van-cell__right-icon {
      font-size: 16px;
    }
  }
  .van-cell::after {
    right: 0;
    left: 0;
    border-bottom: 2px solid #e5e5e5;
  }
  .my-content-login {
    background-color: #fff;
    height: 98px;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 16px;
    display: flex;
    align-items: center;
    .login {
      font-size: 20px;
      margin-left: 10px;
    }
    .loginImg {
      width: 58px;
      height: 58px;
      .img {
        width: 58px;
        height: 58px;
      }
    }
  }
}
</style>
